package com.baidu.health.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 方案表
 * @TableName tb_case
 */
@Document(indexName = "tb_case")
@TableName(value ="tb_case")
public class TbCase implements Serializable {
    /**
     * 方案主键
     */
    @Id
    @TableId(type = IdType.AUTO)
    private Integer caseId;

    /**
     * 方案名称
     */
    private String caseName;

    /**
     * 疾病id
     */
    private Integer askDiseaser;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date caseStarttime;

    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date caseUpdatetime;

    /**
     * 逻辑删除
     */
    private Integer deleted;

    @TableField(exist = false)
    private Integer current;
    @TableField(exist = false)
    private Integer pagesize;

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getPagesize() {
        return pagesize;
    }

    public void setPagesize(Integer pagesize) {
        this.pagesize = pagesize;
    }

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public Integer getCaseId() {
        return caseId;
    }

    public void setCaseId(Integer caseId) {
        this.caseId = caseId;
    }

    public String getCaseName() {
        return caseName;
    }

    public void setCaseName(String caseName) {
        this.caseName = caseName;
    }

    public Integer getAskDiseaser() {
        return askDiseaser;
    }

    public void setAskDiseaser(Integer askDiseaser) {
        this.askDiseaser = askDiseaser;
    }

    public Date getCaseStarttime() {
        return caseStarttime;
    }

    public void setCaseStarttime(Date caseStarttime) {
        this.caseStarttime = caseStarttime;
    }

    public Date getCaseUpdatetime() {
        return caseUpdatetime;
    }

    public void setCaseUpdatetime(Date caseUpdatetime) {
        this.caseUpdatetime = caseUpdatetime;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
}